<input hidden="hidden" id="navValue" value="团队管理">
<div class="page-content">
    <div class="page-header">
        <h1>
            团队管理
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                团队列表&nbsp;&nbsp;&nbsp;<a href="{:url('team/saveExcel')}"><button>导出EXCEL</button></a>
            </small>
            <label style="float: right">
                <form action="" method="get">
                    <input type="search" name="phone" style="height: 35px;" class="input-sm" placeholder="手机号码"
                           aria-controls="dynamic-table" value={:input('get.phone')}>

                    <button id="searchBtn" type="submit"
                            class="dt-button buttons-collection buttons-colvis btn btn-white btn-primary btn-bold"
                            tabindex="0" aria-controls="dynamic-table" data-original-title="" title="搜索"><span><i
                                class="fa fa-search bigger-110 blue"></i></span></button>
                </form>
            </label>
        </h1>
    </div><!-- /.page-header -->
    {$error}
    {if !empty($teamList)}
    <div class="row">
        <div class="col-xs-12">

            <table id="simple-table" class="table  table-bordered table-hover">
                <tr>
                    <td style="width: 20%">sid</td>
                    <td style="width: 20%">用户名</td>
                    <td style="width: 20%">推荐总业绩</td>
                    <td style="width: 30%">推荐下级</td>
                </tr>
                {foreach $teamList as $team}
                <tr>
                    <td>{$team['sid']}</td>
                    <td>{$team['username']}</td>
                    <td><a href="{:url('team/fteam')}?sid={$team['sid']}">{$team['total']}</a></td>
                    <td>{$team['recommend']}</td>
                </tr>
                {/foreach}
            </table>
            {$page_html['html']}
        </div><!-- /.span -->
    </div><!-- /.row -->
    {/if}
    <!-- PAGE CONTENT ENDS -->
</div><!-- /.col -->
</div><!-- /.row -->
</div>
